<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>赛事详情</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/Swiper/3.4.2/css/swiper.min.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdn.bootcss.com/Swiper/3.4.2/js/swiper.jquery.min.js"></script>
    <script src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>

</head>
<body>
<!-- 顶部开始 -->
<div th:replace="common1::#topbar"></div>
<!-- 顶部结束 -->
<!-- 中部开始 -->
<div class="wrapper">
    <!-- 左侧菜单开始 -->
    <div th:replace="common1::#leftbar"></div>
    <!-- 左侧菜单结束 -->
    <!-- 右侧主体开始 -->
    <div class="page-content">
        <div class="content">
            <!-- 右侧内容框架，更改从这里开始 -->


            <span class="x-right" style="line-height:40px">共有数据：[[${comcount}]] 条</span>

            <table class="layui-table">
                <thead>
                <tr>
                    <th style="text-align: center">赛事编号</th>
                    <th style="text-align: center">赛事名字</th>
                    <th style="text-align: center">赛事简介</th>
                    <th style="text-align: center">开始时间</th>
                    <th style="text-align: center">结束时间</th>
                    <th style="text-align: center">赛事场地</th>
                    <th style="text-align: center">赛事类别</th>

                </tr>
                </thead>
                <tbody>
                <tr align="center" th:each="com:${coms}">
                    <td th:text="${com.id}">赛事编号</td>
                    <td th:text="${com.cpname}">赛事名字</td>
                    <td th:text="${com.cpintro}">赛事简介</td>
                    <td th:text="${#dates.format(com.cpstime, 'yyyy-MM-dd')}">开始时间</td>
                    <td th:text="${#dates.format(com.cpetime, 'yyyy-MM-dd')}">结束时间</td>
                    <td th:text="${com.complace}">赛事场地</td>
                    <td th:text="${com.cptype}">赛事类别</td>

                </tr>
                </tbody>
            </table>
            <!-- 右侧内容框架，更改从这里结束 -->
        </div>
    </div>
    <!-- 右侧主体结束 -->
</div>
<!-- 中部结束 -->
<!-- 底部开始 -->
<div th:replace="common1::#bottombar"></div>
<!-- 底部结束 -->
<!-- 背景切换开始 -->
<div th:replace="common1::#backbar"></div>
<!-- 背景切换结束 -->
</body>
</html>